const Response = require('./Response')
function errorHandle(error, ctx) {
  console.log(error);
  ctx.status = error.status;
  ctx.body = Response.ERROR(error);
}
module.exports = errorHandle